function ContentHead(h) {

	AbstractHead.call(this, h);
				
	this.getContentLength = function() {
		return parseInt(this.getHeader("Content-Length").getValue());
	}

	this.getContentType = function() {
		return this.getHeader("Content-Type").getValue();
	}

	this.containsContentLength = function() {
		return this.getHeader("Content-Length") != null;
	}
}

function ContentHeadInit(len, contentType, h) {
	ContentHead.call(this, HeadFactory.createHead2(h, [new Header("Content-Length", "" + len), new Header("Content-Type", contentType)]));	
}